﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CareerObjective.ascx.cs"
    Inherits="Job.Web.userControls.Personal.CareerObjective" %>
<%@ Register Assembly="Job.Web" Namespace="Job.Web.RelatedDrowDownList" TagPrefix="cc1" %>


<%@ Register src="AddItems.ascx" tagname="AddItems" tagprefix="uc1" %>


<script type="text/javascript">
    $(document).ready(function() {
        $.formValidator.initConfig({ formid: "aspnetForm", onerror: function(msg) { alert('校验没有通过，具体错误请看错误提示') } });
        $("#ctl00_maincontent_ctl05_ddlApplyStyle").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, max: 100, onerror: "<img alt='请选择工作类型!' src='/Images/no_com.gif' width=15 height=15 />" })
        //    $("#ctl00_maincontent_ctl05_txtsName").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, max: 100,  onerror: "<img alt='请输入职位名称' src='/Images/no_com.gif' width=15 height=15 />" }); //.defaultPassed();
        //    $("#ctl00_maincontent_ctl05_txtSchooleName").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, max: 500, onerror: "<img alt='请输入工作描述' src='/Images/no_com.gif' width=15 height=15 />" }); //.defaultPassed();
        //    $("#ctl00_maincontent_ctl05_ddlHeight").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, onerror: "<img alt='请输入工作描述' src='/Images/no_com.gif' width=15 height=15 />" }).defaultPassed();
    }
);

    function AddToRight(sehopeadd, ddpid, ddlsid, listboxid) {
        var objlist = document.getElementById(listboxid);
        if (objlist.length >= 5) {
            return;
        }
        //alert(document.getElementById(ddlparentid));
        var ptext = document.getElementById(ddpid).options[document.getElementById(ddpid).selectedIndex].text+"";
        //alert(1);
        //var pvalue = document.getElement(ddlparentid).options[document.getElement(ddlparentid).selectedIndex].value;
        var stext = document.getElementById(ddlsid).options[document.getElementById(ddlsid).selectedIndex].text+"";
        var svalue = document.getElementById(ddlsid).options[document.getElementById(ddlsid).selectedIndex].value+"";
        var sedvalue = document.getElementById(sehopeadd).value+"";
        var asadd = false;
        if (sedvalue != "" && sedvalue.indexOf("," + svalue) != -1) {
            asadd = true;
        }

        if (svalue != "" && svalue != "0" && !asadd) {

            var newvalue = sedvalue + "," + svalue;
            document.getElementById(sehopeadd).value = newvalue;
            var littext = ptext + " - " + stext;
            node = document.createElement("<option   value='" + svalue + "'>");
            text = document.createTextNode(littext);
            node.appendChild(text);
            objlist.appendChild(node);
        }
    }

    function AddToLeft(listboxid, sehopeadd) {


        var objlist = document.getElementById(listboxid);
        for (i = objlist.length - 1; i >= 0; i--) {
            if (objlist.options[i].selected == true) {

                var svalue = document.getElementById(sehopeadd).value;
                svalue = svalue.replace("," + objlist.options[i].value, "");
                document.getElementById(sehopeadd).value = svalue;
                objlist.remove(i);
            }
        }
    } 
  </script>   
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
	<tr><td class="titleTD">&nbsp;求职意向/自我评价( <font color="#ec0000">*</font> 为必填项)</td></tr>
	<tr><td>&nbsp;</td></tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td align="center" class="row22" align="left">

<table border="1px" bordercolor="#d8e1e7" style="border-style: solid; border-collapse: collapse"
    width="100%" class="ResumeBaseTable" align="left">
    <tr align="left">
        <td class="msgTD" colspan="2" id="message" runat="server" visible="false">
            &nbsp
        </td>
    </tr>
    <tr align="left">
        <td class="style1" align="left">
            &nbsp; 工作类型<span><font color="red">*</font> </span>
        </td>
        <td class="ResumeTD">
            <asp:DropDownList ID="ddlApplyStyle" runat="server" Width="200px">
            </asp:DropDownList>
            <span id="ctl00_maincontent_ctl05_ddlApplyStyleTip"></span>
        </td>
    </tr>
    <tr align="left">
        <td class="style1">
            &nbsp; 意向地区
        </td>
        <td class="ResumeTD">
        
            <uc1:AddItems ID="AddItems1" runat="server" />
        </td>
    </tr>    
    <tr align="left">
        <td class="style1">
            &nbsp; 意向行业
        </td>
        <td class="ResumeTD">
            <uc1:AddItems ID="AddItems3" runat="server" />
        </td>
    </tr>
    <tr align="left">
        <td class="style1">
            &nbsp; 意向职位
        </td>
        <td class="ResumeTD">
            <uc1:AddItems ID="AddItems2" runat="server" />
        </td>
    </tr>

    <tr align="left">
        <td class="style1">
            &nbsp; 可到岗时间
        </td>
        <td class="ResumeTD">
            <asp:DropDownList ID="ddlDay" runat="server" Width="200px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr align="left">
        <td class="style1">
            &nbsp; 期望待遇
        </td>
        <td class="ResumeTD">
            <asp:DropDownList ID="ddlMoney" runat="server" Width="200px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr align="left">
        <td class="style1">
            &nbsp; 自我评价
        </td>
        <td class="ResumeTD">
            <span id="Span1">
                <asp:TextBox ID="txtSelf" runat="server" Height="150px" TextMode="MultiLine" Width="598px"
                    CssClass="TextBox"></asp:TextBox>
            </span>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <asp:Button ID="btnSave" runat="server" Text="保存求职意向" CssClass="btn_2k3" OnClick="btnSave_Click" />
        </td>
    </tr>
</table>



		</td>
	</tr>
</table>
